package table

type Measurement struct {
	CommentHeader
	InstallationDistance string `json:"InstallationDistance" gorm:"column:InstallationDistance;comment:安装距离"`
	MeasurementRange     string `json:"MeasurementRange" gorm:"column:MeasurementRange;comment:测量高度范围"`
	Repeatability        string `json:"Repeatability" gorm:"column:Repeatability;comment:重复精度"`
	Linearity            string `json:"Linearity" gorm:"column:Linearity;comment:线性精度"`
	SamplingPeriod       string `json:"SamplingPeriod" gorm:"type:varchar(255);column:SamplingPeriod;comment:采样周期"` // 假设采样周期是字符串类型，如"1s", "100ms"等
	LaserWavelength      string `json:"LaserWavelength" gorm:"column:LaserWavelength;comment:激光波长"`
	CommunicationMethod  string `json:"CommunicationMethod" gorm:"type:varchar(255);column:CommunicationMethod;comment:通讯方式"`
}

func (m Measurement) TableName() string {
	return "measurement"
}
